{foreach key=subpackage item=files from=$classleftindex}
	{if $subpackage != ""}<subpackage name="{$subpackage}">{/if}
	{section name=files loop=$files}
		<class{if $files[files].link != ''} path="{$files[files].link}.xml"{/if}>{$files[files].title}</class>
	{/section}
	{if $subpackage != ""}</subpackage>{/if}
{/foreach}
